#include <stdio.h>
#include <wiringPi.h>

struct deviceFact
{
	char deviceName[128];
	char status;
	int pin;
	int (*initDevice)(int pinNum);
	int (*open)(int pinNum);
	int (*close)(int pinNum);
	int (*readStatus)(int pinNum);
	int (*changeStatus)(char sta);

	struct deviceFact *next;

};

struct deviceFact* addtoilLightToDeviceLink(struct deviceFact* phead);
struct deviceFact* addsecFloorLightToDeviceLink(struct deviceFact* phead);
struct deviceFact* addrestLightToDeviceLink(struct deviceFact* phead);
struct deviceFact* addhallLightToDeviceLink(struct deviceFact* phead);
struct deviceFact* addfireWarnToDeviceLink(struct deviceFact* phead);